.class public Lcom/example/m6wmr/SetCodeActivity;
.super Landroid/app/Activity;
.source "SetCodeActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/SetCodeActivity$mOncliclistener;
    }
.end annotation


# instance fields
.field private activities:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private bindphone:Ljava/lang/String;

.field private closebtn:Landroid/widget/LinearLayout;

.field private context:Landroid/content/Context;

.field private et_setcode:Landroid/widget/EditText;

.field private gethttpsString:Ljava/lang/String;

.field private h:Landroid/os/Handler;

.field private logo:Ljava/lang/String;

.field private m:Lmyapp/MyApp;

.field private pwd:Ljava/lang/String;

.field private savedInstanceState:Landroid/os/Bundle;

.field private setcode:Ljava/lang/String;

.field private tv_sure_setcode:Landroid/widget/TextView;

.field private uid:Ljava/lang/String;

.field private username:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 29
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/SetCodeActivity;)Z
    .locals 1

    .prologue
    .line 229
    invoke-direct {p0}, Lcom/example/m6wmr/SetCodeActivity;->isNull()Z

    move-result v0

    return v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/SetCodeActivity;)V
    .locals 0

    .prologue
    .line 200
    invoke-direct {p0}, Lcom/example/m6wmr/SetCodeActivity;->commitdata()V

    return-void
.end method

.method static synthetic access$10(Lcom/example/m6wmr/SetCodeActivity;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 35
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->h:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/SetCodeActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 51
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->gethttpsString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/SetCodeActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 36
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/SetCodeActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 49
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->setcode:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/SetCodeActivity;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 33
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/SetCodeActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 42
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->uid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/SetCodeActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 43
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->pwd:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/SetCodeActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 45
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->bindphone:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/SetCodeActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 51
    iput-object p1, p0, Lcom/example/m6wmr/SetCodeActivity;->gethttpsString:Ljava/lang/String;

    return-void
.end method

.method private commitdata()V
    .locals 2

    .prologue
    .line 203
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/example/m6wmr/SetCodeActivity$2;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/SetCodeActivity$2;-><init>(Lcom/example/m6wmr/SetCodeActivity;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 219
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 225
    return-void
.end method

.method private initData()V
    .locals 3

    .prologue
    .line 246
    iput-object p0, p0, Lcom/example/m6wmr/SetCodeActivity;->context:Landroid/content/Context;

    .line 247
    invoke-virtual {p0}, Lcom/example/m6wmr/SetCodeActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Lmyapp/MyApp;

    iput-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->m:Lmyapp/MyApp;

    .line 248
    iget-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->activities:Ljava/util/List;

    .line 249
    iget-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->activities:Ljava/util/List;

    invoke-interface {v1, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 251
    iget-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->savedInstanceState:Landroid/os/Bundle;

    iput-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->savedInstanceState:Landroid/os/Bundle;

    .line 255
    const-string v1, "userInfo"

    const/4 v2, 0x0

    invoke-virtual {p0, v1, v2}, Lcom/example/m6wmr/SetCodeActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 257
    .local v0, "sharedPreferences":Landroid/content/SharedPreferences;
    const-string v1, "uid"

    const-string v2, ""

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->uid:Ljava/lang/String;

    .line 258
    const-string v1, "pass"

    const-string v2, ""

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->pwd:Ljava/lang/String;

    .line 259
    const-string v1, "username"

    const-string v2, ""

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->username:Ljava/lang/String;

    .line 260
    const-string v1, "phone"

    const-string v2, ""

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->bindphone:Ljava/lang/String;

    .line 263
    return-void
.end method

.method private initView()V
    .locals 1

    .prologue
    .line 268
    const v0, 0x7f0c0001

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/SetCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->closebtn:Landroid/widget/LinearLayout;

    .line 269
    const v0, 0x7f0c013f

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/SetCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->et_setcode:Landroid/widget/EditText;

    .line 270
    const v0, 0x7f0c0140

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/SetCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->tv_sure_setcode:Landroid/widget/TextView;

    .line 272
    return-void
.end method

.method private isNull()Z
    .locals 3

    .prologue
    .line 232
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->et_setcode:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, "%"

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, " "

    const-string v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->setcode:Ljava/lang/String;

    .line 234
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->setcode:Ljava/lang/String;

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 236
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->context:Landroid/content/Context;

    const-string v1, "\u63d0\u793a\u4fe1\u606f"

    const-string v2, "\u65b0\u5bc6\u7801\u4e3a\u7a7a"

    invoke-static {v0, v1, v2}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 237
    const/4 v0, 0x0

    .line 241
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private setoncliclistener()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 157
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->closebtn:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6wmr/SetCodeActivity$mOncliclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/SetCodeActivity$mOncliclistener;-><init>(Lcom/example/m6wmr/SetCodeActivity;Lcom/example/m6wmr/SetCodeActivity$mOncliclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 158
    iget-object v0, p0, Lcom/example/m6wmr/SetCodeActivity;->tv_sure_setcode:Landroid/widget/TextView;

    new-instance v1, Lcom/example/m6wmr/SetCodeActivity$mOncliclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/SetCodeActivity$mOncliclistener;-><init>(Lcom/example/m6wmr/SetCodeActivity;Lcom/example/m6wmr/SetCodeActivity$mOncliclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 159
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 56
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 57
    const v1, 0x7f030038

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/SetCodeActivity;->setContentView(I)V

    .line 59
    invoke-direct {p0}, Lcom/example/m6wmr/SetCodeActivity;->initData()V

    .line 60
    invoke-direct {p0}, Lcom/example/m6wmr/SetCodeActivity;->initView()V

    .line 61
    invoke-direct {p0}, Lcom/example/m6wmr/SetCodeActivity;->setoncliclistener()V

    .line 62
    const/high16 v1, 0x7f0c0000

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/SetCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 63
    .local v0, "top":Landroid/widget/LinearLayout;
    iget-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v1

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 64
    const v1, 0x7f070026

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 67
    :cond_0
    new-instance v1, Lcom/example/m6wmr/SetCodeActivity$1;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/SetCodeActivity$1;-><init>(Lcom/example/m6wmr/SetCodeActivity;)V

    iput-object v1, p0, Lcom/example/m6wmr/SetCodeActivity;->h:Landroid/os/Handler;

    .line 152
    return-void
.end method
